﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Silvery;
using Silvery.Role.Standard;
using System.Collections.Generic;

namespace Sample02_Role
{
    public class Sample_8 : GameRoot
    {
        StandardRole hero;
        public Sample_8()
        {
            hero = new StandardRole(new Uri("download/Sample_Role/PC001.zip", UriKind.Relative));
            this.AddBaseObj(hero);
            hero.Position = new Point(300, 200);
            App.Current.RootVisual.MouseLeftButtonDown += new MouseButtonEventHandler(Test_8_MouseLeftButtonDown);
            
        }


        void Test_8_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            hero.Speed = 120;
            hero.GotoQueue = new List<Point>() { hero.Position, e.GetPosition(this) };
            //hero.MoveTo(hero.Position, e.GetPosition(this), 100);
        }
        
    }
}
